import request from '@/utils/request'

// 查询房源列表
export function listBuiRoom(query) {
  return request({
    url: '/park/buiRoom/list',
    method: 'get',
    params: query
  })
}

// 查询房源详细
export function getBuiRoom(id) {
  return request({
    url: '/park/buiRoom/' + id,
    method: 'get'
  })
}

// 新增房源
export function addBuiRoom(data) {
  return request({
    url: '/park/buiRoom',
    method: 'post',
    data: data
  })
}

// 修改房源
export function updateBuiRoom(data) {
  return request({
    url: '/park/buiRoom',
    method: 'put',
    data: data
  })
}

// 删除房源
export function delBuiRoom(id) {
  return request({
    url: '/park/buiRoom/' + id,
    method: 'delete'
  })
}
